This code does not support multithreading so there will be a performance penalty.
NOTE: this code was modified to compile with Visual C++ 6.0. It is not C++11 compliant!